package consys.social.nosql.service.hbase;

import consys.social.nosql.dao.hbase.HBaseTable;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;

/**
 *
 * @author Petr Kunc
 */
public class HBaseFactory {

    public static ThreadLocal<HBaseTable> getHBaseTable(String tableName, Configuration conf) throws IOException {
         ThreadLocal<HBaseTable> table = new ThreadLocal<HBaseTable>();
         table.set(new HBaseTable(conf, tableName));
         return table;
    }

}
